home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1995 May / PC Direct CD-ROM (May 1995).ISO / ipe / hplus20e / disk1 / sqlservr.sq_ / sqlservr.bin
Encoding:
Text File  |  1994-08-22  |  1.2 KB  |  43 lines

  1. /****************************************************/
  2. /* You should login as 'sa' to execute this script. */
  3. /****************************************************/
  4.  
  5. USE Master
  6. go
  7.  
  8. /******************************************************/
  9. /* Create 5 meg HelpPlus database. The name of the    */
  10. /* database can be changed in addition to the device. */
  11. /******************************************************/
  12.  
  13. CREATE DATABASE HelpPlus ON Master = 5
  14. go
  15.  
  16. /***********************************************************/
  17. /* Create HelpPlus Login/User. The default database must   */
  18. /* be the same as the database created above.              */
  19. /***********************************************************/
  20.  
  21. sp_addlogin HelpPlusSYS, Olympics, HelpPlus
  22. go
  23. USE HelpPlus
  24. go
  25. sp_adduser HelpPlusSYS
  26. go
  27.  
  28. /********************************************/
  29. /* Grant permission for SELECT, INSERT,     */
  30. /* and DELETE.                              */
  31. /********************************************/
  32. GRANT ALL TO HelpPlusSYS
  33. go
  34.  
  35. /*************************************************/
  36. /* Allow user to CREATE tables in the database.  */
  37. /*************************************************/
  38. sp_addalias HelpPlusSYS, dbo
  39. go
  40.  
  41. USE Master
  42. go
  43.